<?php 
define('IN_ECS', true);
 
require(dirname(__FILE__) . '/includes/init.php');

if(isset($_GET['act'])){
	$category_id = $_POST['id']+0;
	$sql = "select * from ".$ecs->table('goods')." WHERE cat_id=".$category_id." limit 3";
	$goods = $db->getAll($sql);
	// print_r($goods);
	$smarty->assign('goods',$goods);
	$info = $smarty->fetch('ajax.dwt');
	echo $info;
	// $smarty->display('ajax.dwt');
}



 ?>